﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using InsuranceCompany.Core.Domain.Objects;

namespace InsuranceCompany.Core.Domain.InsuranceArea
{
    abstract public class InsuranceEntity :Entity
    {
        public static string DefaultName = "Insurance company";
        public string CompanyName { get; set; }

        public InsuranceEntity()
        {
            this.CompanyName = DefaultName;
        }
        public InsuranceEntity(string companyName) :base()
        {
            this.CompanyName = companyName;
        }
        public InsuranceEntity(InsuranceEntity ie) :base(ie)
        {
            this.CompanyName = ie.CompanyName;
        }
        public static void setDefaultName(string name)
        {
            DefaultName = name;
        }
    }
}
